﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddEdit.aspx.cs" Inherits="CardLogistics.Web.MainPage.Basic.CardType.AddEdit" %>

<%@ Register Src="../../../Controls/WebUserControl_Nav.ascx" TagName="WebUserControl_Nav"
    TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>卡类型</title>
    <link href="../../../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../../../js/valReq.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        function valReq() {
            var altStr = valid_isempty('CARDTYPENAME', '名称');
            altStr += valid_isempty('MAINCODE', '主卡类型编码'); 
            altStr += valid_isempty('CHILDCODE', '子卡类型编码');
            if (altStr != "") {
                alert(altStr);
                return false;
            }
            else {
                return true;
            }
        }
    </script>
</head>
<body>
    <form id="Form1" runat="server">
    <uc1:WebUserControl_Nav ID="WebUserControl_Nav1" runat="server" />
    <table class="theForm" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td class="titleTxt">
                名称：
            </td>
            <td class="contentTxt">
                <input id="CARDTYPENAME" runat="server" type="text"  maxlength="25" class="dfinputNoEmp"/>
            </td>
           <td class="titleTxt">
                所属卡类型：
            </td>
            <td class="contentTxt">
                <asp:DropDownList ID="FatherCardTypeId" runat="server" CssClass="dfinput">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
              <td class="titleTxt">
                主卡类型编码：
            </td>
            <td class="contentTxt">
                <input id="MAINCODE" runat="server" type="text" maxlength="25" class="dfinputNoEmp" />
            </td>
            <td class="titleTxt">
                子卡类型编码：
            </td>
            <td>
                <input id="CHILDCODE" runat="server" type="text" maxlength="25" class="dfinputNoEmp"/>
            </td>
    
        </tr>
        <tr>
              <td class="titleTxt">
                起始编码：
            </td>
            <td class="contentTxt">
                 <asp:DropDownList ID="ddlStartCode" runat="server" CssClass="dfinput">
                    <asp:ListItem Selected="True" Value="0">0</asp:ListItem>
                    <asp:ListItem  Value="1">1</asp:ListItem>
                    <asp:ListItem  Value="2">2</asp:ListItem>
                    <asp:ListItem  Value="3">3</asp:ListItem>
                    <asp:ListItem  Value="4">4</asp:ListItem>
                    <asp:ListItem  Value="5">5</asp:ListItem>
                    <asp:ListItem  Value="6">6</asp:ListItem>
                    <asp:ListItem  Value="7">7</asp:ListItem>
                    <asp:ListItem  Value="8">8</asp:ListItem>
                    <asp:ListItem  Value="9">9</asp:ListItem>
                </asp:DropDownList>
            </td>

                    <td class="titleTxt">
                状态：
            </td>
            <td>
                <input id="STATUS" type="checkbox" runat="server" style="vertical-align: middle;" />
                <label for="STATUS" style="vertical-align: middle;">
                    禁用</label>
                <label style="vertical-align: middle; color: red;">
                    注意：禁用后，将不可用。</label>
            </td>
        </tr>
        <tr >
               <td class="titleTxt">
                备注：
            </td>
            <td class="contentTxt" colspan="3">
                 <input id="REMARK" runat="server" type="text" class="dfinput" maxlength="200" style="width:90%" />
            </td>
        </tr>
        <tr>
            <td colspan="4" align="center">
                <asp:Button ID="btn_Add" CssClass="btn" runat="server" Text="保存" OnClientClick="return valReq();"
                    OnClick="btn_Add_Click" />
                <input type="button" class="btn" value="返回" onclick="javascript:history.go(-1);" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
